package com.ruoyi.system.dto.convert;

import com.ruoyi.system.dto.ConstructionProjectItemDTO;
import com.ruoyi.system.entity.ConstructionProjectItemDO;
import com.ruoyi.system.vo.TaskDetailVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 施工事项类型转换器（DTO ↔ DO）
 */
@Mapper(componentModel = "spring")
public interface ProjectItemConverter {


    ProjectItemConverter INSTANCE = Mappers.getMapper(ProjectItemConverter.class);

    ConstructionProjectItemDTO doToDto(ConstructionProjectItemDO constructionProjectItemDO);

    ConstructionProjectItemDO dtoToDo(ConstructionProjectItemDTO constructionProjectItemDTO);

    List<TaskDetailVO> doToVo(List<ConstructionProjectItemDO> constructionProjectItemDOList);
}
